package com.caishi.lkx.exam.service.impl;

import com.caishi.lkx.exam.mapper.PackageTagMapper;
import com.caishi.lkx.exam.model.PackageTagModel;
import com.caishi.lkx.exam.service.IColumnService;
import com.caishi.lkx.exam.service.IPackageTagService;
import com.zzw.common.entity.IBaseMapper;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.stream.Collectors;

@Service
public class PackageTagServiceImpl implements IPackageTagService {

    @Resource
    private PackageTagMapper packageTagMapper;
    @Resource
    private IColumnService columnService;

    @Override
    public IBaseMapper<PackageTagModel, String> getMapper() {
        return packageTagMapper;
    }

    @Override
    public List<String> getNameListByIds(List<String> tagIds) {
        return this.selectBatchIds(tagIds).stream().map(PackageTagModel::getName).collect(Collectors.toList());
    }


}
